let timer = ''
export function countdown(that){
  let seconds = that.data.timeCountDown
  if(seconds === 0){
    that.setData({
      timeCountDown:0,
      isCountDown:false
    })
  }else{
    timer = setTimeout(()=>{
      that.setData({
        timeCountDown:seconds-1
      })
      countdown(that)
    },1000)
  }
}